//
//  LPTBankCardTableViewCell.m
//  LPTClient
//
//  Created by mac on 2018/12/6.
//  Copyright © 2018年 zhaodd. All rights reserved.
//

#import "LPTBankCardTableViewCell.h"

@interface LPTBankCardTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *bankNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *bankCardNumLabel;

@end

@implementation LPTBankCardTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

-(void)refreshWithEntity:(UserInfoModel *)model
{
    if (model.doctor.bank_card) {
        
        self.bankNameLabel.text = model.doctor.bank_card.bank;
        self.bankCardNumLabel.text = [NSString stringWithFormat:@"尾号（%@）",[model.doctor.bank_card.account_number substringFromIndex:model.doctor.bank_card.account_number.length - 4]];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
